<template>
  <div>message的值： {{ message }}</div>
  <div>obj.message的值： {{ obj.message }}</div>
</template>

<script setup>
import { reactive, toRef } from "vue";
const obj = reactive({ message: "洪都新府" });
const message = toRef(obj, "message");
setTimeout(() => {
  message.value = "少壮不努力";
}, 2000);
</script>

<style lang="css" scoped></style>
